//
//  MyCollcetionViewController.m
//  wtshoppingcite
//
//  Created by TW on 14-10-24.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "MyCollcetionViewController.h"
#import "AppDelegate.h"

@interface MyCollcetionViewController ()

@end

@implementation MyCollcetionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self setTitleView:@"我的收藏"];
    
    
    UIImageView *imageView =[[UIImageView alloc]initWithFrame:CGRectMake((kWidth - 120)/2, (kHeight-120-64)/2, 120, 120)];
    imageView.image =[UIImage imageNamed:@"other_collect"];
    [self.view addSubview:imageView];
    
    UILabel *label =[self createLabelWithFrame:CGRectMake((kWidth-220)/2, imageView.bottom, 220, 20) text:@"你还没有收藏的哦～" font:14.0f textAli:NSTextAlignmentLeft textColor:UIColorFromRGB(0xdcdddd)];
    [self.view addSubview:label];
    
    // Do any additional setup after loading the view.
}


//-(UILabel*)createLabelWithFrame:(CGRect)frame text:(NSString*)text font:(int)font textAli:(NSTextAlignment)alig textColor:(UIColor*)tc{
//    if(text == nil)
//        text = @"";
//    UILabel* label = [[UILabel alloc] initWithFrame:frame];
//    label.text = text;
//    label.font = [UIFont systemFontOfSize:font];
//    label.textAlignment = alig;
//    label.textColor = tc;
//    label.backgroundColor = [UIColor clearColor];
//    return label;
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    ;
}


- (void)viewWillDisappear:(BOOL)animated
{
    
    [super viewWillDisappear:animated];
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
